let express = require('express')
// let user = require('../model/User')

let router = express.Router()

let routerHelper = (function () {
  return {
    handler: function (req, res, next) {
      /* user.createByData({
        name: 'ttt',
        password: '1211',
        nickname: 'xiaoT'
      }) */
      res.send('this is index yo')
      // res.sendfile('./dist/index.html')
    }
  }
})()

router.get('/test', routerHelper.handler)

module.exports = router
